package com.haisen.dataobject.dto;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PubSubMsgDTO {

    String publisher;
    String publisherName;
    String ctype;
    List<String> subscribers;
    String content;


    public List<String> getSubscribers() {
        if (subscribers == null){
            subscribers = new ArrayList<>();
        }
        return subscribers;
    }
}
